<template>
  <div>
    姓名：<input v-model="userName" /> {{ userName }} <br />
    薪⽔：<input type="number" v-model="salary" /> <button @click="addSalary">薪⽔加
      1000</button> {{ salary }}
  </div>
</template>
<script setup lang="ts">
import MySalary from './MySalary';
let { userName, salary, addSalary } = MySalary()
</script>
<style scoped></style>
